package com.nation.serviceImpl;

import com.nation.dao.OverseasDao;
import com.nation.domain.VOverseasChinese;
import com.nation.service.OverseasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/4.
 */
@Service
public class OverseasServiceImpl implements OverseasService {
    @Autowired
    private OverseasDao OverseasDao;
    @Override
    public List<VOverseasChinese> findAll() {
        return OverseasDao.findAll();
    }

    @Override
    public VOverseasChinese findByCountryCode(String country_code) {
        return OverseasDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VOverseasChinese vOverseasChinese) {
        return OverseasDao.update(vOverseasChinese);
    }

    @Override
    public List<VOverseasChinese> findByLimit(Map<String, Object> map) {
        return OverseasDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VOverseasChinese vOverseasChinese) {
        return OverseasDao.insert(vOverseasChinese);
    }

    @Override
    public List<VOverseasChinese> findByCondition(Map<String, Object> map) {
        return OverseasDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return OverseasDao.delete(pk);
    }
}
